home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000201_amos-request@svcs1.digex.net_Sat Sep 16 10:20:59 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id KAA22763;  for <mcox@access.digex.net> ; Sat, 16 Sep 1995 10:20:59 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id IAA24712 for amos-out; Sat, 16 Sep 1995 08:10:38 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id IAA24709 for <amos-list@svcs1.digex.net>; Sat, 16 Sep 1995 08:10:37 -0400
  4. Received: from disperse.demon.co.uk (disperse.demon.co.uk [158.152.1.77]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id IAA17557;  for <amos-list@access.digex.net> ; Sat, 16 Sep 1995 08:10:27 -0400
  5. Received: from post.demon.co.uk by disperse.demon.co.uk id aa05369;
  6.           16 Sep 95 12:27 +0100
  7. Received: from westmead.demon.co.uk by post.demon.co.uk id aa21152;
  8.           16 Sep 95 12:24 +0100
  9. From: Mark Carter <Mark@westmead.demon.co.uk>
  10. Organization:  None Whatsoever
  11. To: amos-list@access.digex.net
  12. Date:          Sat, 16 Sep 1995 11:46:29 +0000
  13. Subject:       Re: Using the joystick in interface.
  14. Priority: normal
  15. X-mailer: Pegasus Mail/Windows (v1.22)
  16. Message-ID:  <9509161224.aa21152@post.demon.co.uk>
  17. Status: RO
  18. X-Status: 
  19.  
  20. > Date:          Sat, 16 Sep 95 03:03:20 GMT
  21. > From:          Ben Wyatt <bwyatt@paston.co.uk>
  22. > To:            amos-list@access.digex.net
  23. > Subject:       Using the joystick in interface.
  24.  
  25. > Greetings Mark, you wrote some text on the subject Re: I'm off for some
  26. > days, and now I'm going to answer it.
  27. > MC> Hey, Chris (or anyone else for that matter) - is it possible to to 
  28. > MC> emulate mouse movements/buttons by using a joystick in such a way 
  29. > MC> that AMOS cannot tell the difference. You see the problem is, I want 
  30. > MC> to get interface programs working fully by using a joystick.
  31. > Try this, it *might* work:
  32. > -----------------------------------------------------------------------
  33. > Every 1 Proc _JOYTEST
  34. > Every On
  35. > '
  36. > ' Interface stuff and main loop
  37. > '
  38. > Procedure _JOYTEST
  39. >    Every On
  40. >    If Jleft(1) Then Xmouse=Xmouse-1
  41. >    If Jright(1) Then Xmouse=Xmouse+1
  42. >    If Jup(1) Then Ymouse=Ymouse-1
  43. >    If Jdown(1) Then Ymouse=Ymouse+1
  44. > Endproc
  45. > -----------------------------------------------------------------------
  46.  
  47. Hey, thats the easy bit.
  48.  
  49. > Don't know about the Fire/Left mouse button though! A tricky/damn-near-
  50. > impossible one.
  51.  
  52. Thats what I need to know!
  53.  
  54. I need to emulate the mouse button exactly so that the joystick can 
  55. be used to control interface programs.
  56.  
  57. > MC> P.S How about a command which combines Dim X(?) and Global X()
  58. > That would be useful (but only to make messy amos code look slightly less
  59. > messy). ;-)
  60.  
  61. If you've got over a hundred arrays at the start of a program (like I 
  62. have) it would make the program look a LOT less messy - I've got 
  63. about 3 pages of Dim();Global commands before I get to my code!
  64.  
  65. Cheers,
  66.  
  67. Mark